body {
  // background-color: #F7F7F7;
}

// **********base类，用于混合********************
.center {
  width: 1152px;
  margin: 0 auto;
}

.clearfix {
  display: block;
  zoom: 1;

  &:after {
    content: " ";
    display: block;
    font-size: 0;
    height: 0;
    clear: both;
    visibility: hidden;
  }
}

.db {
  display: block;
}

.dib {
  display: inline-block;
}

.tac {
  text-align: center;
}

//*****************base类，用于混合*******************

// 头部样式
@top-color: #2b2b2b;

.one-nav {
  height: 32px;
  background-color: @top-color;

  .one-navbox {
    color: white;
    font-size: 0.85rem;
    display: flex;

    .left {
      flex-grow: 1;

      ul {
        display: flex;
        height: 32px;
        line-height: 32px;

        li {
          padding: 0 8px;

          a {
            color: white;
          }
        }
      }

      ul li:nth-child(1) {
        padding-left: 0px;
      }
    }

    .right {

      ul {
        display: flex;
        height: 32px;
        line-height: 32px;

        li {
          padding: 0 8px;
        }

        li a {
          color: white;
        }
      }

      ul li:last-child {
        padding-right: 0px;
      }
    }
  }
}


//第二导航
@twocolor: rgb(38, 204, 168);

.two-nav {
  height: 40px;
  background-color: @twocolor;

  .two-navbox {
    ul {
      display: flex;

      li {
        padding: 0 8px;
      }

      a {
        line-height: 40px;
        color: white;
      }
    }

    ul li:nth-child(1) {
      padding-left: 0px;
    }
  }
}

//header main
.headmain {
  height: 78px;

  .mainbox {
    display: flex;

    h1 {
      color: @twocolor;
      font-size: 2rem;
      line-height: 78px;
    }

    .search {

      //不用flex居中方法：
      // position:relative;
      margin-left: 15px;

      display: flex;
      /*Flex布局*/
      display: -webkit-flex;
      /* Safari */
      align-items: center;
      /*指定垂直居中*/

      input {
        float: left;
        width: 361px;
        height: 28px;
        border: 1px solid #20BD9A;
        /* 分别按四个角进行设置 */
        border-radius: 4px 0 0 4px;
        font-size: 14px;
        /* 取消默认的外线（外线是文本框特有的东西） */
        outline: none;
        padding-left: 10px;

        //不用flex居中方法：
        // display: inline-block;
        // position: absolute;
        // top: 50%;
        // transform: translateY(-50%);

      }

      a {
        float: left;
        width: 32px;
        height: 30px;
        background-color: #20BD9A;
        color: white;
        text-align: center;
        line-height: 30px;
        font-size: 18px;
        border-radius: 0 4px 4px 0;

        // position: absolute;
        // top: 50%;
        // transform: translateY(-50%);
      }
    }
  }
}

// 头部公共的结束

.ly-main {

  .center();

  display: flex;
  flex-direction: row;


  .main-r {
    flex-grow: 1;
    margin: 0px 0px 20px 20px;
    // background-color: rgba(126, 252, 0, 0.123);


    .title {
      font-size: 1.5rem;
    }

    .msg {
      color: #666;
      margin: 10px auto;
      font-size: 0.8rem;

      p {
        display: inline-block;
      }

      p:nth-child(2) {
        float: right;
      }

      p:nth-child(3) {
        float: right;
        padding-right: 10px;
      }
    }

    .price {
      font-size: 0.85rem;
      background-color: rgba(26, 204, 168, 0.1);
      padding: 15px;

      .big {
        font-size: 1.88rem;
        font-weight: 900;
        color: rgb(0, 217, 255);
      }

      .time {

        padding: 15px 0px 0px 0px;
      }

      .msg2 {
        color: #666;
      }

      .sale {
        padding: 5px 0px 0px 0px;

      }

      .hr {
        width: 100%;
        // height: 1px;
        border-bottom: 1px solid rgb(0, 255, 170);
        margin: 10px auto;
      }

      .trait {
        color: rgb(0, 217, 255);
        display: inline-block;
        padding: 0 10px;
        font-weight: 900;
        border: 1px dotted rgb(0, 217, 255);
      }
    }


    .desc {
      padding: 20px 0px;
      font-size: 0.85rem;
      color: #666;
    }
  }


}



.buy {
  .center();

  .buybox {
    box-sizing: border-box;
    height: 73px;
    line-height: 73px;
    background-color: rgba(26, 204, 168, 0.1);
    border: 3px solid #26cca8;
    position: relative;


    .describe {
      display: inline-block;
      padding: 0px 5px;
    }


    .content {
      width: 130px;
    }

    .buybtn {
      position: absolute;
      top: 16px;
      right: 10px;
      width: 120px;
      /* 宽度 */
      height: 40px;
      /* 高度 */
      border-width: 0px;
      /* 边框宽度 */
      border-radius: 5px;
      /* 边框半径 */
      background: #26cca8;
      /* 背景颜色 */
      cursor: pointer;
      /* 鼠标移入按钮范围时出现手势 */
      outline: none;
      /* 不显示轮廓线 */
      font-family: Microsoft YaHei;
      /* 设置字体 */
      color: white;
      /* 字体颜色 */
      font-size: 17px;
      /* 字体大小 */
    }

    .buybtn:hover {
      background: rgba(26, 204, 168, 0.582);
    }
  }
}


// 引用主页的主要板块


.body-one {

  background-color: rgb(255, 255, 255);

  .box {

    .title {
      display: flex;
      padding: 20px 0px 10px 0px;

      h2 {
        font-size: 1.1rem;
        padding-right: 20px;
      }

      p {
        display: inline-block;
        margin-top: 18px;
      }
    }

    .hr {
      height: 3px;
      background-color: #26cca8;
      margin-bottom: 15px;
    }

    .body-one-item-box {
      display: flex;
      flex-wrap: wrap;

      .body-one-item {
        width: 264px;
        height: 270px;
        margin-right: 32px;
        margin-bottom: 32px;

        img {
          transition: transform .4s ease 0s;

        }

        img:hover {
          transform: scale(1.1);
        }

        overflow: hidden;

        p {
          display: inline-block;
          background-color: #fff;
          padding: 15px 10px 30px 10px;
          font-size: 0.8rem;
        }
      }

      .body-one-item:hover {
        box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.20);
      }

    }

    .body-one-item-box div:nth-child(4n) {
      margin-right: 0px;

    }
  }

}

// 引用主页的主要板块end




.itemDesc {

  .center();

  h2 {
    font-size: 1.1rem;
    padding-right: 20px;
  }

  .hr {
    height: 3px;
    background-color: #26cca8;
    margin-bottom: 15px;
  }

  .descimg {
    width: 1000px;
    margin: 0 auto;
  }
}




//bottom

.bottom {
  background-color: #474443;

  .content {
    .center();
    color: #fff;

    height: 200px;
    // background-color: rgb(189, 255, 244);
    display: flex;

    .left {
      // background-color: lightslategrey;
      padding: 30px;
      padding-left: 0px;
      flex: 1;

      .l-text {
        margin: 20px;
        margin-left: 0px;
      }
    }

    .right {
      // background-color: lightsteelblue;
      padding: 30px;
      padding-right: 0px;
      width: 200px;

      .r-text {
        margin: 20px;
        margin-right: 0px;
      }

      .r-tel {
        .r-text();
        font-size: 1.2rem;

      }
    }
  }
}